package com.scedu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


import javax.servlet.http.HttpSession;

@Controller
public class LoginController {
    @RequestMapping("/dologin")
    //执行登录
    public String dologin(HttpSession httpSession,String username, String password){
        httpSession.setAttribute("username",username);
        return "main";
    }
    @RequestMapping("/main")
    public  String main(){
        return  "main";
    }
    @RequestMapping("/login")
    public  String login(){
        return  "login";
    }
}
